﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.AuthorCenter.Departments.Repositories
{
    public interface IDepartmentRepository : IRepository<Department, Guid>
    {
        Task<int> GetCountAsync(string code, string name, Guid? parentId = null, Guid? excludeId = null, CancellationToken cancellationToken = default);

        Task<Department> FindAsync(string code, string name, CancellationToken cancellationToken = default);

        Task<List<Department>> GetListAsync(string code, string name, Guid? parentId, CancellationToken cancellationToken = default);
    }
}
